import request from '@/utils/axios/index.js'
const api_name = '/nurse/projects';

export  const addNurseProject = (data)=>{
    return request.post({
        url:`${api_name}/save`,
        data
    })
}

export const getNurseProjectList = ()=>{
    return request.get({
        url:`${api_name}/getItemList`
    })
}

export const loadNurseProjectApi = (data,pageParams)=>{
    return request.get({
        url:`${api_name}/select/${pageParams.page}/${pageParams.limit}`,
        params:data
    })
}

export const updateNursingProjectStatus = (status,id) =>{
    return request.get({
        url:`${api_name}/updateStatus`,
        params:{status,id}
    })
}

export const deleteNursingProject = id =>{
    return request.get({
        url:`${api_name}/delete`,
        params:{id}
    })
}

